<template>
  <div id="app">
    <Header/>
    <router-view></router-view>
    <Footer v-show="isHome"/>
  </div>
</template>

<script>
import Header from './components/Header/'
import Footer from './components/Footer/'
export default {
 components:{
   Header,
   Footer
 },
 computed:{
   //判断是否在home界面
   isHome(){
     let flag 
     this.$route.path === '/home' ||this.$route.path === '/search'? flag = true :flag = false
     return flag
   }
 }
}
</script>
<style lang="less">

</style>
